// SearchResult.java - 搜索结果封装类
package com.search_wheel.pojo.vo;

import java.util.List;

public class SearchResult<T> {
    private List<T> data;           // 搜索结果数据
    private int total;              // 总数量
    private int page;               // 当前页
    private int size;               // 每页大小
    private String keyword;         // 搜索关键词
    private String type;            // 搜索类型：all/content/user


    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}